home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
NEWTEXTF
/
SOURCE_C
/
HANDLETO.C1
< prev
next >
Wrap
Text File
|
1990-09-10
|
274b
|
12 lines
#include "MyLibrary.h"
unsigned char *HandleToStr255 (Handle hndl, Str255 pstr)
{if (hndl == (Handle) 0 || !(GetHandleSize (hndl)))
{*pstr = 0;
return (pstr);}
MoveHHi (hndl);
HLock (hndl);
CToStr255 (*hndl, pstr);
HUnlock (hndl);
return (pstr);}